bdcbb32da149a253db0f2e17173a24e361acd8c8,Common/Frameworks/ERDirectToWeb/Sources/er/directtoweb/ERDEntityAssignment.java,ERDEntityAssignment,fire,#D2WContext#,102
Before Change
}
// try the pageConfiguration, if that does not match, give up
if(result == null) {
String name = (String)c.valueForKey("pageConfiguration");
if (result == null && name != null) {
result = entityForName(name);
}
After Change
}
protected NSArray entityNames = null;
public Object fire(D2WContext c) {
Object result = null;
// is it an entity name?
if (value() != null && value() instanceof String && ((String)value()).length() > 0) {
result = ERXUtilities.caseInsensitiveEntityNamed(((String)value()).toLowerCase());
}
// maybe it is a key? get the entity name from there.
if(result == null && value() != null && value() instanceof String) {
result = entityForName((String)value());
}
// try the pageConfiguration, if that does not match, give up
if(result == null) {
result = entityForKey(c, "pageConfiguration");
}
return result;
}